package cn.ghf.basic.service;

import cn.ghf.basic.query.BaseQuery;
import cn.ghf.basic.util.PageList;

import java.util.List;

public interface IBaseService<T> {
    void add(T t);

    void update(T t);

    void delete(Long id);

    T loadById(Long id);

    List<T> loadAll();

    PageList<T> queryData(BaseQuery query);

    void patchDelete(Long[] ids);

}
